import {RouteRecordRaw} from "vue-router";

const userChildren: Array<RouteRecordRaw> = [
    {
        path: "",
        // name: "/user/info",
        component: () => import('../components/user/UserInfoShow.vue'),
    }, {
        path: "wishlist",
        name: "/user/wishlist",

        component: () => import('../components/user/UserWishList.vue'),
    }, {
        path: "friends",
        name: "/user/friends",

        component: () => import('../components/user/UserFriends.vue'),
    }, {
        path: "games",
        name: "/user/game",

        component: () => import('../components/user/UserGames.vue'),
    }, {
        path: "orderCart",
        name: "/user/orderCart",
        component: () => import('../components/user/UserOrderCart.vue'),
    }, {
        path: "admin",
        name: "/user/admin",
        component: () => import('../components/user/UserAdmin.vue'),
    },
]
export const userRoute: Array<RouteRecordRaw> = [{
    path: "/user",
    props: true,
    meta: {
        title: "UserInfo",
    },
    component: () => import('../components/user/UserIndex.vue'),
    children: userChildren

},]
